<template>
    <section class="collect-server_detail">
    	 <!-- <el-button style="margin-bottom: 25px;" type="primary" plain @click="goBack">返回</el-button> -->
			<div class="group" v-for="(item,index) in detailData">
				<span class="detail_title">{{item.title}}</span>
				<el-form :label-width="item.lebelWidth">
  				 <el-form-item 
  				 	style="margin-bottom: 5px;"
  				 	:label="itemForm.name"
  				 	 v-for= "(itemForm,indexForm) in item.elForm">
				    <span v-if="itemForm.type==='1'">{{itemForm.value}}</span>
				    <div class="" v-if="itemForm.type==='2'" >
				    	<p v-for="(itemP,indexP) in itemForm.value">
				    		<span 
				    		v-for="(itemSpan ,indexSpan) in itemP"
				    		 style="margin-right: 25px;"
				    	>
				    	{{itemSpan.name}} :{{itemSpan.value}} </span>
				    	</p>
				    </div>
				     <div class="" v-if="itemForm.type==='3'" >
				    	<span 
				    		 v-for="(itemType3,indexType3) in itemForm.value"
				    		 style="margin-right: 25px;"
				    	>
				    	{{itemType3}}</span>
				    </div>
				  </el-form-item>
                <p class="fixed_button">
                    <el-button type="primary" @click="goBack" >返回</el-button>
                </p>
        		</el-form>
			</div>    	
  			
    </section>
</template>

<script>
    
    export default {
    	props:{
				detailData: Array,
				treeSeach: Object	
    	},
        data() {
          return {	

          };	
        },
        methods: {
        	goBack(){
        		this.$emit('goBack');
        	}
        },
        mounted(){
        	Object.assign(this.$data, this.$options.data())/*重置data数据*/
        }
      
  };
</script>

<style >
.collect-server_detail span.detail_title {
     font-size: 20px;
     width: 100%;
    display: inline-block;
    font-weight: 600;
    padding-left: 10px;
}
.collect-server_detail .group{
	margin-bottom: 30px;
	border-bottom:  solid 1px #bbbbbb;
}
.collect-server_detail .el-form-item__label{
	text-align: left;
	padding-left: 10px;
}
.fixed_button{
    position: fixed;
    bottom: 0px;
    background: #e0eefd80;
    width: 100%;
    height: 60px;
    line-height: 60px;
    text-align: center;
  }
</style>